<p-dataTable [value]="scheduleDatas" [responsive]="true" id="malfunctionTable">

    <p-column selectionMode="multiple" ></p-column>
    <p-column field="sid" header="下架单号" [sortable]="true">
        <ng-template let-data="rowData" pTemplate="operator">
            <span  class="ui-cursor-point" (click)="onOperate(data)">{{data.sid}}</span>
        </ng-template>
    </p-column>
    <p-column field="applicant" header="申请人" [sortable]="true"></p-column>
    <p-column field="create_time" header="创建时间" [sortable]="true"></p-column>
    <p-column field="unshelve_type" header="下架类型" [sortable]="true"></p-column>
    <p-column field="plantime_end" header="计划下架时间" [sortable]="true"></p-column>
    <p-column field="title" header="预计完成时间" [sortable]="true"></p-column>
    <p-column field="approve" header="处理人" [sortable]="true"></p-column>
    <p-column field="status_name" header="状态" [sortable]="true"></p-column>
    <p-column field="color" header="操作项">
        <ng-template let-data="rowData" pTemplate="operator">
            <app-us-btn-edit [data]="data"></app-us-btn-edit>
            <app-us-btn-delete [data]="data" (informTableChangedEmitter)="getInformChanged($event)"></app-us-btn-delete>
            <app-us-btn-approval [data]="data"></app-us-btn-approval>
            <app-us-btn-under-shelf [data]="data"></app-us-btn-under-shelf>
            <app-us-btn-finish [data]="data"></app-us-btn-finish>
        </ng-template>
    </p-column>
    <ng-template pTemplate="emptymessage">
        当前没有数据
    </ng-template>
</p-dataTable>
<p-paginator rows="10" totalRecords="{{total}}" [rowsPerPageOptions]="[10,20,30]" pageLinkSize="3"  (onPageChange)="paginate($event)"></p-paginator>
